<admintpl file="header" />
<link rel="stylesheet" href="__PUBLIC__/css/jquery.datetimepicker.css">
<style type="text/css">
	table.cityList {
    margin: 10px 0px;
    border: 1px solid #999;
    text-align: center;
	}
	.actimg{
		width: 80px;
	}
</style>
</head>
<body>
	<div class="wrap">
		<!-- <ul class="nav nav-tabs">
			<li><a href="{:U('ad/index')}">{:L('ADMIN_AD_INDEX')}</a></li>
			<li class="active"><a href="{:U('ad/add')}">{:L('ADMIN_AD_ADD')}</a></li>
		</ul> -->
<table border="1" cellpadding="2" cellspacing="0" width="80%" align="center"  class="activityList table table-hover table-bordered table-list">
	<tr><td>id</td><td>banner</td><td>活动标题</td><td>状态</td><td>最后更新时间</td><td>操作选项</td> </tr>
	<volist name="banners" id="banner">
		<tr>
			<td>{$banner['id']}</td>
			<td><img src="{$banner['image']}" width="50"></td>
			<td>{$banner['title']}</td>
			<td>
				<eq name="banner[status]" value="0">等待上线</eq>
				<eq name="banner[status]" value="1">已上线</eq>
				<eq name="banner[status]" value="2">已下线</eq>
			</td>
			<td>{$banner['updatetime']}</td>
			<td>
				<eq name="banner[status]" value="0">
					<a href="{:U('Admin/Activites/changeQueueBannerStatus?status=1&id='. $banner['id'])}" class="handelStatus">上线</a>
				</eq>
				<eq name="activity[status]" value="1">
					<a href="{:U('Admin/Activites/changeQueueBannerStatus?status=2&id='. $banner['id'])}" class="handelStatus">下线</a>
				</eq>
				
					<a href="{:U('Admin/Activites/QueueBanner?id='. $banner['id'])}" class="handelStatus">编辑</a>
			
				<neq name="banner[status]" value="-1">
					<a href="{:U('Admin/Activites/changeQueueBannerStatus?status=-1&id='. $banner['id'])}" class="handelStatus">删除</a>
				</neq>
			</td>
		</tr>

	</volist>
</table>

	<div class="pagination">{$pager}</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>